package bb.lanxing.lib.devices.ble.ble.characteristic.light;

import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;

public enum LightColor {
    MonochromaticLight(0),
    PolychromaticLight8(1),
    PolychromaticLight16(2),
    PolychromaticLight256(3),
    PolychromaticLight65535(4),
    PolychromaticLight1600w(5),
    PolychromaticLight1600wAlpha(6),
    Reserved(7);
    
    public static final Companion Companion = new Companion(null);
    private final int raw;

    LightColor(int i) {
        this.raw = i;
    }

    public final int getRaw() {
        return this.raw;
    }


    public static final class Companion {
        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public LightColor from(int i) {
            LightColor[] values;
            for (LightColor lightColor : LightColor.values()) {
                if (lightColor.getRaw() == i) {
                    return lightColor;
                }
            }
            return null;
        }
    }
}
